#ifndef FCOMPARE_H
#define FCOMPARE_H

/**
 * fcompare.h
 * Asif Shahidullah
 *
 * A simple function that compares two floating points values.
 * 
 * This function operates a little differently than the standard
 * relative error method used when comparing floating points. We 
 * can note that our floating points only need to be precise up
 * to two decimal places. Therefore, we can multiply the floating points
 * by a large value (such as 10,000) shifting the decimal point, truncate
 * the fractional part of the new value and compare integars.
 */

/* Compares the first floating point to the second.
 * Returns -1 if the first is less than the second,
 * 1 if the second is less than the first or 0 if
 * the two values are equal. */
int fcompare (float, float);

#endif
